package com.sunyard.dal.bo.bulletin;

import com.sunyard.dal.bo.BaseBO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * @author zihui
 */
@Data
@ApiModel
public class AdvertAddBO extends BaseBO {
    private static final long serialVersionUID = 6282241112928502587L;

    @ApiModelProperty(value = "广告标题", required = true)
    @Size(max = 40, message = "广告标题长度不超过40位")
    @NotBlank
    private String adTitle;

    @ApiModelProperty(value = "广告描述", required = true)
    private String desc;

    @ApiModelProperty(value = "广告图片", required = true)
    @NotBlank
    private String imagUrl;

    @ApiModelProperty(value = "开始时间", required = true)
    @NotBlank
    private String beginDateTime;

    @ApiModelProperty(value = "结束时间", required = true)
    @NotBlank
    private String endDateTime;

}
